//
//  BaseViewModel.swift
//  TodayNews
//
//  Created by ZhangBo on 2019/6/17.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import UIKit
import Moya
import Alamofire


class BaseViewModel: NSObject {


    lazy var homeNet: LYNetProvider<HomeNetConfig> = {
        return LYNetProvider<HomeNetConfig>()
    }()


    var refreshReq: DataRequest? {
        willSet {
            moreReq?.cancel()
        }
    }
    var moreReq: DataRequest? {
        willSet {
            refreshReq?.cancel()
        }
    }
}
